﻿using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;
using System.Reflection;


namespace LeoMVC.Web.Installers
{
    public class RepositoryInstaller:IWindsorInstaller
    {
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            container.Register(Classes.FromAssembly(Assembly.Load("LeoMVC.Repository"))
                                   .Pick()
                                   .WithService.DefaultInterfaces()
                                   .LifestyleTransient()
                                 //.Configure()
                );
        }
    }
}